﻿@model MMITDomain.Entities.Transaction
@{
    ViewBag.Title = "View";
}
<script type="text/javascript">
    $('document').ready(function () {
        //disable home menu nav bar
        $('li:nth-child(1)').removeClass('active');
        //enable transactions menu nav bar
        $('li:nth-child(3)').addClass('active');
    });

</script>
<div class="top-bar"> <a href="#" class="button">Teller </a>
        <h1>Transactions: View</h1>
        <div class="breadcrumbs"><a href="#">Transactions</a> > @Html.ActionLink("List","List") > @Html.ActionLink("View","View")</div>
</div>
            <div class="select-bar">

            </div>

<h2>View Transaction : @Model.TransactionCode</h2>
<div class="table"> <img src="~/Content/Teller/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="~/Content/Teller/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                <table class="listing form" cellpadding="0" cellspacing="0">
                  <tr>
                    <th class="full" colspan="2">Sender Information</th>
                  </tr>
                  <tr>
                    <td class="first" width="172"><strong>@Html.Label("First Name: ") </strong></td>
                    <td class="last">@Model.Sender.Customer.Firstname</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Middle Name: ")</strong></td>
                    <td class="last">@Model.Sender.Customer.Middlename</td>
                  </tr>
                  <tr>
                    <td class="first"><strong>@Html.Label("Last Name: ")</strong></td>
                    <td class="last">@Model.Sender.Customer.Lastname</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Mobile: ")</strong></td>
                    <td class="last">@Model.Sender.Customer.Mobile</td>
                  </tr>
                  <tr><th class="full" colspan="2">Recipient Information</th></tr>
                            <tr>
                    <td class="first" width="172"><strong>@Html.Label("First Name: ") </strong></td>
                    <td class="last">@Model.Recipient.Customer.Firstname</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Middle Name: ")</strong></td>
                    <td class="last">@Model.Recipient.Customer.Middlename</td>
                  </tr>
                  <tr>
                    <td class="first"><strong>@Html.Label("Last Name: ")</strong></td>
                    <td class="last">@Model.Recipient.Customer.Lastname</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Mobile: ")</strong></td>
                    <td class="last">@Model.Recipient.Customer.Mobile</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Identification Type: ")</strong></td>
                    <td class="last">@Model.Recipient.Customer.IdentificationType.Name</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Identification Number: ")</strong></td>
                    <td class="last">@Model.Recipient.Customer.IdentificationNumber</td>
                  </tr>
                    <tr><th class="full" colspan="2">TRANSACTION INFORMATION</th></tr>
           
                   <tr class="bg">
                    <td class="first"><strong>@Html.Label("Transaction Code: ")</strong></td>
                    <td class="last">@Model.TransactionCode</td>
                  </tr>

                    <tr class="bg">
                    <td class="first"><strong>@Html.Label("Transaction Type: ")</strong></td>
                    <td class="last">@Model.TransactionType.Name</td>
                  </tr>
         
                    <tr class="bg">
                    <td class="first"><strong>@Html.Label("Amount: ")</strong></td>
                    <td class="last">@Model.Amount.ToString()</td>
                  </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Transaction Date: ")</strong></td>
                    <td class="last">@Model.TimeInitiated.ToString()</td>
                    </tr>
                  <tr class="bg">
                    <td class="first"><strong>@Html.Label("Transaction Status: ")</strong></td>
                    <td class="last">@Model.coreStatus</td>
                  </tr>
                </table>  
                            <p><input type="button" id="cancel" value="Cancel Transaction" class="t-button t-button-icontext" 
                                style="border: none; height: 32px; cursor: pointer;"/>
                                <input type="button" id="back" value="Back to List" class="t-button t-button-icontext" 
                                style="border: none; height: 32px; cursor: pointer;"/>
                              
                            </p> 
              </div>